<include file="Public/head" title="确认接力"/>
<include file="Public/back_head"/>
<div class="main">
    <div class="select_shop_two clear">
        <img src="{$info.goods_pic}" alt="">
        <div class="select_shop_right">
            <div class="title">{$info.goods_name}</div>
            <div class="show">{$info.goods_profile}</div>
            <div class="money1 clear"><i class="iconfont icon-jiage-copy"></i>{$info.goods_price} <span>X{$info.order_num}</span></div>
            <div class="type">颜色:  {$info.goods_spec}</div>
        </div>
    </div>
    <div class="type_one">
        商品金额 <span><i class="iconfont icon-jiage-copy"></i>{$info.order_price}</span>
    </div>
	<if condition="$repayment neq null">
    <div class="type_two">
        <div class="title">浮动方式
            <label for="">
                <span>{:$info['float_type'] == '2'?'向上':'向下'}浮动</span>
            </label>
        </div>
        <div class="title">浮动金额
            <span>￥{$info.float_cash}浮动</span>
        </div>
    </div>
    <div class="empty_1rem">支付采用“按天付”的方式，详情如下</div>
    <div class="type_two">
        <div class="title">每天还款金额 <span class="color_19c4b4">￥<em>{$repayment.per_cash}</em></span></div>
        <div class="title">剩余还款天数 <span><em>{$repayment.remain_days}</em>天</span></div>
    </div>
    <div class="type_two">
        <div class="title">押金
            <span>￥{$global_data.deposit}</span>
        </div>
    </div>
	</if>
    <button class="fiexd_button" onclick="confirm_relay('{$info.id}')">我要接力</button>
</div>
<script>
function confirm_relay(id){
	$.post("{:U('Relay/confirm_relay')}",{id:id},function(data){
		layer.msg(data.info);
		if(data.url != '')setTimeout("location.href='"+data.url+"'",1000);
	});
}
</script>
<include file="Public/foot"/>